
using System.Web.UI.HtmlControls;
using System;
using System.Configuration;
using System.Drawing;
using System.Data;
using System.Web.UI.WebControls;
using Microsoft.VisualBasic;
using System.Collections;
using System.Web.UI;
using System.Web;



namespace smasb2b
{
	public partial class test : System.Web.UI.Page
	{
		
		protected void Page_Load(object sender, System.EventArgs e)
		{
			
		}
		
		protected void Button1_Click(object sender, EventArgs e)
		{
			FunctionHandler fn = new FunctionHandler();
			Label1.Text = fn.Encrypt(TextBox1.Text);
		}
		
		protected void Button2_Click(object sender, EventArgs e)
		{
			FunctionHandler fn = new FunctionHandler();
			Label1.Text = fn.Decrypt(TextBox1.Text);
		}

        protected void Button3_Click(object sender, EventArgs e)
        {
           Label2.Text  = SMAS.Cryptography.Crypto.CryptoInstance.EncryptString(TextBox2.Text);
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Label2.Text = SMAS.Cryptography.Crypto.CryptoInstance.DecryptString(TextBox2.Text);
        }
	}
}
